math/big.Float.prec (field)
78 uses
math/big (current package)
float.go#L66: prec uint32
float.go#L169: z.prec = 0
float.go#L182: old := z.prec
float.go#L183: z.prec = uint32(prec)
float.go#L184: if z.prec < old {
float.go#L209: return uint(x.prec)
float.go#L359: return x.prec <= uint32(x.exp) || x.MinPrec() <= uint(x.exp) // not enough bits for fractional mantissa
float.go#L385: if x.prec == 0 {
float.go#L414: if bits <= z.prec {
float.go#L433: r := uint(bits - z.prec - 1) // rounding bit position; r >= 0
float.go#L443: n := (z.prec + (_W - 1)) / _W // mantissa length in words for desired precision
float.go#L450: ntz := n*_W - z.prec // 0 <= ntz < _W
float.go#L509: if z.prec == 0 {
float.go#L510: z.prec = 64
float.go#L523: if z.prec < 64 {
float.go#L553: if z.prec == 0 {
float.go#L554: z.prec = 53
float.go#L574: if z.prec < 53 {
float.go#L605: if z.prec == 0 {
float.go#L606: z.prec = umax32(bits, 64)
float.go#L631: if z.prec == 0 {
float.go#L632: z.prec = umax32(a.prec, b.prec)
float.go#L666: if z.prec == 0 {
float.go#L667: z.prec = x.prec
float.go#L668: } else if z.prec < x.prec {
float.go#L683: z.prec = x.prec
float.go#L900: r.prec = uint32(p)
float.go#L1020: r.prec = uint32(p)
float.go#L1350: n := int(z.prec/_W) + 1
float.go#L1455: if z.prec == 0 {
float.go#L1456: z.prec = umax32(x.prec, y.prec)
float.go#L1529: if z.prec == 0 {
float.go#L1530: z.prec = umax32(x.prec, y.prec)
float.go#L1596: if z.prec == 0 {
float.go#L1597: z.prec = umax32(x.prec, y.prec)
float.go#L1641: if z.prec == 0 {
float.go#L1642: z.prec = umax32(x.prec, y.prec)
floatconv.go#L34: prec := z.prec
floatconv.go#L65: z.prec = prec
floatconv.go#L124: z.prec = prec
floatmarsh.go#L31: n = int((x.prec + (_W - 1)) / _W) // required mantissa length in words for given precision
floatmarsh.go#L51: binary.BigEndian.PutUint32(buf[2:], x.prec)
floatmarsh.go#L79: oldPrec := z.prec
floatmarsh.go#L87: z.prec = binary.BigEndian.Uint32(buf[2:])
ftoa.go#L188: s := mant.bitLen() - int(x.prec+1)
ftoa.go#L331: case w < x.prec:
ftoa.go#L332: m = nat(nil).shl(m, uint(x.prec-w))
ftoa.go#L333: case w > x.prec:
ftoa.go#L334: m = nat(nil).shr(m, uint(w-x.prec))
ftoa.go#L339: e := int64(x.exp) - int64(x.prec)
sqrt.go#L38: if z.prec == 0 {
sqrt.go#L39: z.prec = x.prec
sqrt.go#L58: prec := z.prec
sqrt.go#L60: z.prec = prec
sqrt.go#L96: u := newFloat(z.prec)
sqrt.go#L97: v := newFloat(z.prec)
sqrt.go#L100: u.prec = t.prec
sqrt.go#L101: v.prec = t.prec
sqrt.go#L111: sqi := newFloat(z.prec)
sqrt.go#L113: for prec := z.prec + 32; sqi.prec < prec; {
sqrt.go#L114: sqi.prec *= 2
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |